GtkContainer: make "handle_border_width" member private
authorColin Walters <walters@verbum.org>
Thu, 13 Jan 2011 21:30:28 +0000 (16:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 14 Jan 2011 14:29:33 +0000 (09:29 -0500)
Otherwise in introspection we get a naming conflict between the
structure member and the method.

http://bugzilla.gnome.org/show_bug.cgi?id=639325

gtk/gtkcontainer.c
gtk/gtkcontainer.h

index d5135209cd268fbc7cb95f999d1b2f4a6c62f70c..cd400b3e0267ccc696a0503514f012bfef0f3215 100644 (file)
@@ -1766,7 +1766,7 @@ gtk_container_adjust_size_request (GtkWidget         *widget,
 
   container = GTK_CONTAINER (widget);
 
-  if (GTK_CONTAINER_GET_CLASS (widget)->handle_border_width)
+  if (GTK_CONTAINER_GET_CLASS (widget)->_handle_border_width)
     {
       int border_width;
 
@@ -1796,7 +1796,7 @@ gtk_container_adjust_size_allocation (GtkWidget         *widget,
 
   container = GTK_CONTAINER (widget);
 
-  if (!GTK_CONTAINER_GET_CLASS (widget)->handle_border_width)
+  if (!GTK_CONTAINER_GET_CLASS (widget)->_handle_border_width)
     {
       parent_class->adjust_size_allocation (widget, orientation,
                                            minimum_size, natural_size, allocated_pos,
@@ -1859,7 +1859,7 @@ gtk_container_class_handle_border_width (GtkContainerClass *klass)
 {
   g_return_if_fail (GTK_IS_CONTAINER_CLASS (klass));
 
-  klass->handle_border_width = TRUE;
+  klass->_handle_border_width = TRUE;
 }
 
 /**
index 94a8502c8f6d0e6b81021d06fd281ac70dde9f8c..2498513dd0e060a8216a025541e13ecf5c4e5f37 100644 (file)
@@ -62,8 +62,6 @@ struct _GtkContainerClass
 {
   GtkWidgetClass parent_class;
 
-  unsigned int handle_border_width : 1;
-
   void    (*add)                       (GtkContainer    *container,
                                 GtkWidget       *widget);
   void    (*remove)                    (GtkContainer    *container,
@@ -91,6 +89,11 @@ struct _GtkContainerClass
   GtkWidgetPath * (*get_path_for_child) (GtkContainer *container,
                                          GtkWidget    *child);
 
+
+  /*< private >*/
+
+  unsigned int _handle_border_width : 1;
+
   /* Padding for future expansion */
   void (*_gtk_reserved1) (void);
   void (*_gtk_reserved2) (void);